package com.zixuan.gulicollege.eduservice.controller.front;

import com.zixuan.gulicollege.common_utils.R;
import com.zixuan.gulicollege.eduservice.service.EduTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassName: FrontTeacherController
 * @Author: zixuan
 * @Date: 2021/5/22 14:35
 * @Description:
 */
@RestController
@RequestMapping("/edu_service/teacher_front")
public class FrontTeacherController {

    @Autowired
    private EduTeacherService teacherService;

    /**
     * 前台分页查询讲师
     * @param current 当前页
     * @param limit 每页记录数
     * @return
     */
    @GetMapping("/getTeacherFront/{current}/{limit}")
    public R getTeacherFront(@PathVariable Integer current, @PathVariable Integer limit) {
        Map<String, Object> map = teacherService.pageListTeacher(current, limit);
        return R.ok().data(map);
    }




}
